# coding=utf8
'''
Created on 2014-3-12

@author: xizhzhao
'''

import sqlite3

read_record_sql = 'select * from spd_records where record_id=1218'
conn = sqlite3.connect("D:\\sqlite\\cardata.db")
cu = conn.cursor()
cu.execute(read_record_sql)
for r in cu.fetchone():
    if isinstance(r, str):
        r = r.decode('utf8').encode('gbk')
    print r
cu.close()
conn.close()
